package Month07.day21;

import java.util.Arrays;

public class MaoPao {
    public static void main(String[] args) {
        int[] ints = new int[]{32, 12, 34, 21, 32, 8, 23, 34};
        for (int i = 0; i < ints.length - 1; i++) {
            for (int j = 0; j < ints.length - 1 - i; j++) {
                if (ints[j] > ints[j + 1]) {
                    int temp = ints[j];
                    ints[j] = ints[j + 1];
                    ints[j + 1] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(ints));
    }
}
